package empox.common;

import java.io.File;

public class DirManage {
	public static void createAllDir() {
		File tempDir;
		String[] dirList = { 
				
				EmpoxConst.$BKRECOVERYPATH,						//"/flash/pos/empoxsl5/recovery/"
				EmpoxConst.$DATABASEPATH, 						//"/flash/pos/databases/"
				EmpoxConst.$DATABASEPATH + "seeds/",			//"/flash/pos/databases/seeds/"
				EmpoxConst.$TEMPDBPATH, 						//"/flash/pos/databases/updateall/"
				EmpoxConst.$TEMPDBPATH2,						//"/flash/pos/databases/temp/"
				EmpoxConst.$CHATPATH,							//"/flash/chatppp/"
				
				EmpoxConst.$BASICPATH + "product/increment/",	//"/flash/pos/empoxsl5/basicinfo/product/increment/"
				EmpoxConst.$BASICPATH + "style/increment/",		//"/flash/pos/empoxsl5/basicinfo/style/increment/"
				EmpoxConst.$BASICPATH + "color/increment/",		//"/flash/pos/empoxsl5/basicinfo/color/increment/"
				EmpoxConst.$BASICPATH + "size/increment/",		//"/flash/pos/empoxsl5/basicinfo/size/increment/"
				EmpoxConst.$BASICPATH + "newoldcode/increment/",//"/flash/pos/empoxsl5/basicinfo/newoldcode/increment/"
				EmpoxConst.$BASICPATH + "goodscolor/increment/",//"/flash/pos/empoxsl5/basicinfo/goodscolor/increment/"
				EmpoxConst.$BASICPATH + "stock/increment/",		//"/flash/pos/empoxsl5/basicinfo/stock/increment/"
				EmpoxConst.$BASICPATH + "price/increment/",		//"/flash/pos/empoxsl5/basicinfo/price/increment/"
				EmpoxConst.$BASICPATH + "showinput/",			//"/flash/pos/empoxsl5/basicinfo/showinput/increment/"
				EmpoxConst.$BASICPATH + "paymethod/",			//"/flash/pos/empoxsl5/basicinfo/paymethod/increment/"
				EmpoxConst.$BASICPATH + "vip/increment/",		//"/flash/pos/empoxsl5/basicinfo/vip/increment/"

				EmpoxConst.$TEMPRECVPATH + "check/",			//"/flash/pos/empoxsl5/recv/check/"
				EmpoxConst.$TEMPRECVPATH + "sale/",				//"/flash/pos/empoxsl5/recv/sale/"
				EmpoxConst.$TEMPRECVPATH + "bill/",				//"/flash/pos/empoxsl5/recv/bill/"
				EmpoxConst.$TEMPRECVPATH + "want/",				//"/flash/pos/empoxsl5/recv/want/"
				EmpoxConst.$TEMPRECVPATH + "notice/",			//"/flash/pos/empoxsl5/recv/notice/"
				EmpoxConst.$TEMPRECVPATH + "notarize/",			//"/flash/pos/empoxsl5/recv/notarize/"
				EmpoxConst.$TEMPRECVPATH + "notice/temp",		//"/flash/pos/empoxsl5/recv/notice/temp"
				EmpoxConst.$TEMPRECVPATH + "checkbill/header/",	//"/flash/pos/empoxsl5/recv/checkbill/header/"
				EmpoxConst.$TEMPRECVPATH + "checkbill/detail/", //"/flash/pos/empoxsl5/recv/checkbill/detail/"
				EmpoxConst.$TEMPRECVPATH + "basic/",			//"/flash/pos/empoxsl5/recv/basic/"
				EmpoxConst.$TEMPRECVPATH + "rec/",				//"/flash/pos/empoxsl5/recv/rec/"
				EmpoxConst.$TEMPRECVPATH + "huge/",				//"/flash/pos/empoxsl5/recv/huge/"
				EmpoxConst.$TEMPRECVPATH + "huge/src/",			//"/flash/pos/empoxsl5/recv/huge/src/"
				EmpoxConst.$TEMPRECVPATH + "huge/temp/",		//"/flash/pos/empoxsl5/recv/huge/temp/"

				EmpoxConst.$TEMPPATH, 
				EmpoxConst.$ERRORPATH,
				EmpoxConst.$TOSENDPATH + "havesend/",
				EmpoxConst.$SQLSCRIPTPATH, 
				EmpoxConst.$PICPATH,

				EmpoxConst.$XMLPATH
		};

		for (int i = 0; i < dirList.length; i++) {
			tempDir = new File(dirList[i]);
			if (!tempDir.exists()) {
				tempDir.mkdirs();
			}

		}

	}
}
